import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 300,
    searchLabelWidth: 120,
    menu: true,
    header: true,
    addBtn: true,
    addBtnText: '新增申报',
    viewBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '立项标题',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '制定目的',
        prop: 'p2',
        overHidden: true,

      },
      {
        label: '适用范围',
        prop: 'p3',
        overHidden: true,
      },
      {
        label: '适用范围',
        prop: 'p4',
        search: true,
        overHidden: true,
        type: 'select',
        dicData: self.shipSTypeArr,
        filterable: true,
        type: 'select',
        props: {
          label: 'lable',
          value: 'value'
        }
      },
      {
        label: '计划试行日期',
        search: true,
        prop: 'p5',
        type: 'date',
        overHidden: true
      },
      {
        label: '执行部门',
        search: true,
        prop: 'p6',
        overHidden: true
      },
      {
        label: '状态',
        search: true,
        prop: 'p7',
        type: 'select',
        overHidden: true
      },
    ]
  }
}
